<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>{$evaluate.project.name}</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    {CSS href="__ADDONSTATIC__css/font.css" /}
    {CSS href="__ADDONSTATIC__css/xadmin.css" /}
    {js href='__ADDONSTATIC__js/jquery-3.2.1.min.js' /}
    {CSS href="__ADDONSTATIC__css/css.css" /}

    {js href='__ADDONSTATIC__js/xadmin.js' /}
    {js href='__ADDONSTATIC__js/util.js' /}
    <script src="https://cdn.jsdelivr.net/npm/vue"></script>
    {js href='__ADDONSTATIC__lib/layui/layui.js' /}
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>

<body style="background: #f0eeee;">
<div class="center">
    <div class="answer_bg">
        <div class="project_k">
            <div class="project_tit" style="font-size: 18px"><i></i><span>项目名称：</span></div>
            <div class="project_title">{$evaluate.project.name}</div>
        </div>
        <div class="project_k">
            <div class="project_tit2" style="font-size: 18px"><i></i><span>项目进度：</span></div>
            <div class="project_title">{$evaluate.project.stage}</div>
        </div>
    </div>
    <div class="answer_bg">
        <div class="evaluate_option" style="font-size: 16px">
            {volist  name="evaluateInfo" id="info"}
            <div class="project_k">
                <div style="font-size: 18px">
                    <span style="">{$info.key}:</span>
                    <span style="font-weight: bold">{$info.value}</span>
                </div>
            </div>
            {/volist}
        </div>
        <div class="project_k">
            <div style="font-size: 16px">
                <span style="">总体满意评价:</span>
                <span style="font-weight: bold">{$evaluate.status}</span>
            </div>
        </div>
        <div class="project_k">
            <div class="project_stit">
                <span/>备注：</span>
            </div>
            <div class="project_sele">
                <textarea style="border: 0px" name="remark" placeholder="无" class="layui-textarea" readonly>{$evaluate.remark}</textarea>
            </div>
        </div>

        <div class="project_k">
            <div style="font-weight:bold;font-size: 18px">您的解决方案：</div>
            <textarea name="content" placeholder="请输入内容" class="layui-textarea">{$solveContent}</textarea>
        </div>

        <div class="reg_btn2">
            <button onclick="submit()" class="layui-btn layui-btn-lg layui-btn-normal">提交方案</button>
        </div>
    </div>
</div>

</div>
</div>

<script>
    //选项卡
    layui.use('element', function () {
        var element = layui.element;
    });

    /**
     * 保存评价信息
     * @param projectId
     * @param statusId
     */
    function submit() {
        var data = {};
        data.part = "{$partType}";
        data.memberId = "{$memberId}";
        data.eId = {$evaluate.id};
        data.content = $("textarea[name='content']").val();
        console.log(data);
        ajaxUrl("{:addonUrl('Wap/addSolve')}",
            data, function (res) {
            layer.alert(res.message, {}, function (index) {
                console.log(res)
                layer.close(index);
                if(res.code && res.code == '1'){
                    // 微信页面关闭
                    WeixinJSBridge.invoke('closeWindow', {}, function (res) {});
                }
            });
        });
    }
</script>
</body>

</html>